package cn.silver.module.oss.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.domain.BusEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;


/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Table(name = "oss_file")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "OssFile", title = "对象存储管理-文件信息管理")
public class OssFile extends BusEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 文件类型
     */
    @Schema(title = "文件类型")
    private String type;
    /**
     * 文件存储路径
     */
    @Schema(title = "文件存储路径")
    private String path;
    /**
     * 服务商
     */
    @Schema(title = "服务商")
    private String service;
    /**
     * 文件访问url
     */
    @Schema(title = "文件访问url")
    private String fileUrl;
    /**
     * 文件大小
     */
    @Schema(title = "文件大小")
    private Long fileSize;
    /**
     * md5唯一标识
     */
    @Schema(title = "md5唯一标识")
    private String signatrue;
}
